﻿using System;
using Newtonsoft.Json.Linq;
using JsonCSharpClassGenerator;

namespace MyVideoTek
{

    internal class Rating
    {

        private JObject __jobject;
        public Rating(JObject obj)
        {
            this.__jobject = obj;
        }

        public double Note
        {
            get
            {
                return JsonClassHelper.ReadFloat(JsonClassHelper.GetJToken<JValue>(__jobject, "note"));
            }
        }

        public int noteValue
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "$"));
            }
        }

    }
}
